GET /api/learn/quizzes/:id
Quiz Info

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "id": 10,
  "finished": true,
  "exam_results": null,
  "s3_key": null,
  "actionable": {
    "id": 1,
    "title": "Quiz 1",
    "questions_length": 3,
    "questions": [
      {
        "id": 1,
        "body": "Your program’s Purpose is a part of:",
        "options": [
          {
            "id": 1,
            "body": "Your Why"
          },
          ...
        ]
      },
      ...
    ]
  }
}

Params

Param name Description
id
required

Validations:

  • Must be a Integer


PUT /api/learn/quizzes/:id
Update quiz progress

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "id": 11,
  "finished": false,
  "s3_key": null,
  "actionable": {
    "id": 5,
    "title": "Goals",
    "video_duration": 101,
    "s3_key": null
  },
  "video_timestamp": {
    "id": 9,
    "value": 0
  }
}

Params

Param name Description
id
required

Validations:

  • Must be a Integer

finished
required

Validations:

  • Must be one of: true, false, 1, 0.